package cn.dancepeak.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class ArticleTypeTree {
    private Long id;
    private String typeName;
    private Long parentId;

    //如果数组为空前端不接收
    @JsonInclude(value = JsonInclude.Include.NON_EMPTY)
    List<ArticleTypeTree> children = new ArrayList<>();
}
